<?php
class PNLayerArray extends PNObjectExArray {
  function PNLayerArray($init=null, $where='')
  {
    $this->PNObject();

    $this->_objType       = 'degis_layer';
    $this->_objField      = 'id';
    $this->_objPath       = 'form';

    $this->_init($init, $where);
  }

  function genFilter(){

    $user = InnoUtil::getUserInfo();

    $where = "lay_uid = '". $user['uid'] ."'";

    return $where;
  }

  function genSort(){

    return " ORDER BY lay_id ASC";
  }
}
